import {
  InputNumber,
  TimePicker,
  DatePicker,
  Switch,
  Cascader
} from 'element-ui'
import Input from './components/Input.vue'
import RadioGroup from './components/RadioGroup.vue'
import CheckboxGroup from './components/CheckboxGroup.vue'
import SelectAll from './components/SelectAll.vue'
import Select from './components/Select.vue'
import ApiSelect from './components/ApiSelect.vue'
import VSelect from './components/VSelect.vue'
// import ApiTreeSelect from '@/components/Search/minSelectTree'
// import ApiTreeSelect from './components/ApiTreeSelect.vue'
import ApiCascader from './components/ApiCascader'
import Upload from './components/Upload'
import DateRange from './components/DateRange.vue'

import Divider from './components/Divider'
import Title from './components/Title'
import Text from './components/Text'

const componentMap = new Map()

componentMap.set('Input', Input)
componentMap.set('InputNumber', InputNumber)

componentMap.set('TimePicker', TimePicker)
componentMap.set('DatePicker', DatePicker)
componentMap.set('DateRange', DateRange)

componentMap.set('Switch', Switch)

componentMap.set('RadioGroup', RadioGroup)
componentMap.set('CheckboxGroup', CheckboxGroup)
componentMap.set('SelectAll', SelectAll)

componentMap.set('Select', Select)
componentMap.set('ApiSelect', ApiSelect)
componentMap.set('VSelect', VSelect)
// componentMap.set('ApiTreeSelect', ApiTreeSelect)

componentMap.set('Cascader', Cascader)
componentMap.set('ApiCascader', ApiCascader)

componentMap.set('Upload', Upload)

componentMap.set('Divider', Divider)
componentMap.set('Title', Title)
componentMap.set('TextComp', Text)

export { componentMap }
